{% extends 'KeioStudyBundle::layout.html.twig' %}

{% block content %}
    <h2>Blog creation</h2>

<form action="{{ path('blog_create') }}" method="post" {{ form_enctype(form) }}>
	<table width="100%">
		<tr>
			<td style="width:50%">
				<label>Title</label>
		    	{{ form_widget(form.title) }}
			</td>
			<td style="width:50%">
				<label>Category</label>
		    	{{ form_widget(form.category) }}
			</td>
		</tr>
	</table>
		<label>Content</label>
    	<textarea class="ckeditor" id="keio_studybundle_blogtype_blog" name="keio_studybundle_blogtype[blog]" required="required" maxlength="50000"></textarea>

        {{ form_widget(form._token) }}
        <p style="padding-top:10px">
            <button type="submit">Create</button>
        </p>
</form>

        <ul class="record_actions">
    <li>
        <a href="{{ path('blog') }}">
            Back to the list
        </a>
    </li>
</ul>
{% endblock %}
